﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GzipManagerPro.IO
{
    [Serializable]
    public abstract class ArchiveItem
    {
        public string Name { get; set; }
        public abstract bool ExtractTo(string path, Archive archive);
        public abstract bool ExtractTo(string path, Archive archive, string password);
        internal abstract bool WriteTo(Stream stream, Archive archive);

        public override string ToString()
        {
            return this.Name;
        }
    }
}
